package com.example.lcpractice.pattern;

public class SafeLazySingleton {

    private static class InstanceHolder {
        private static SafeLazySingleton oneInstance = new SafeLazySingleton();
    }

    public static SafeLazySingleton getInstance() {
        return InstanceHolder.oneInstance;
    }

    private SafeLazySingleton() {
    }


}
